﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EAppointment.Models
{
    public class Errors
    {
        public static JsonpResult ReturnError(ErrorTypes type)
        {
            UniResult result = new UniResult();
            result.Result = false;
            result.Detail = type.ToString();
            JsonpResult jsonpResult = new JsonpResult(result);
            return jsonpResult;
        }
    }
    public enum ErrorTypes
    {
        NOT_FOUND, SERVER_ERROR, PARAM_ERROR, DB_ERROR, METHOD_NOT_ALLOW,
        USER_NOT_EXISTED,USER_EXISTED,USER_NOT_AVALIABLE,USER_VERIFIED,NOT_LOGIN,
        VERIFY_FAILED,
        APPOINT_ERROR,
        UNKNOWN_ERROR
    }
}